﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace GSPMigratorCore.Helper
{
    public static class GSPValidationHelper
    {
        public const string _INVALID_FS_PATH = "Please provide an existing local file system path. (e.g.  C:\\Documents)";


        public static bool IsValidGSPSourceDir(this string Path)
        {
            return Directory.Exists(Path) && !Uri.IsWellFormedUriString(Path, UriKind.RelativeOrAbsolute) ? true : false;             
        }

    }
}
